package org.raymond.iworks.study.basic.designpattern.state;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public class Client {
    public static void main(String[] args) {
        RaffleActivity activity = new RaffleActivity(1);

        for(int i=0; i<20; i++){
            System.out.println("----第"+(i+1)+"次抽奖----");
            // 参加抽奖,扣除积分
            activity.deduceMoney();
            // 抽奖
            activity.raffle();
        }
    }
}
